<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>create_dummy_spec_file (Spec::Runner)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File vendor\plugins\rspec/spec/spec/runner/drb_command_line_spec.rb, line 55</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_dummy_spec_file</span>
          <span class="ruby-ivar">@dummy_spec_filename</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>)) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;/_dummy_spec#{$drb_example_file_counter}.rb&quot;</span>
          <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-ivar">@dummy_spec_filename</span>, <span class="ruby-value str">'w'</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
            <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span> <span class="ruby-value str">%{
    describe &quot;DUMMY CONTEXT for 'DrbCommandLine with -c option'&quot; do
      it &quot;should be output with green bar&quot; do
        true.should be_true
      end

      it &quot;should be output with red bar&quot; do
        violated(&quot;I want to see a red bar!&quot;)
      end
    end
    }</span>
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
</body>
</html>